package 单例;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Test {


    public static void main(String[] args) {
//       Stu stu = new Stu();
//       Stu stu2 = new Stu();
//       System.out.println(stu);
//       System.out.println(stu2);
        Map<String, Object> result = new HashMap<>();

        List<Stu> stus = new ArrayList<>();
        stus.add(new Stu());

        Map<String, List<Stu>> record = new HashMap<>();
        record.put("records", stus);
        result.put("data", record);

        System.out.println(JSONObject.toJSONString(result, true));



       /* SigleConfig2 config1 = SigleConfig2.build();
        SigleConfig2 config2 = SigleConfig2.build();
        SigleConfig2 config3 = SigleConfig2.build();
        System.out.println(config1);
        System.out.println(config2);
        System.out.println(config3);*/

/*
        Stu2 stu = new Stu2();
        stu.setName("zs");
        stu.setAddr("123");*/

    }
}

@Data
class Record{
    private List<Stu> records;
}
